﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020011F9 RID: 4601
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class StartAetherDivideSceneBattleScRsp : IMessage<StartAetherDivideSceneBattleScRsp>, IMessage, IEquatable<StartAetherDivideSceneBattleScRsp>, IDeepCloneable<StartAetherDivideSceneBattleScRsp>, IBufferMessage
	{
		// Token: 0x17003A49 RID: 14921
		// (get) Token: 0x0600CE29 RID: 52777 RVA: 0x0022B677 File Offset: 0x00229877
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<StartAetherDivideSceneBattleScRsp> Parser
		{
			get
			{
				return StartAetherDivideSceneBattleScRsp._parser;
			}
		}

		// Token: 0x17003A4A RID: 14922
		// (get) Token: 0x0600CE2A RID: 52778 RVA: 0x0022B67E File Offset: 0x0022987E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return StartAetherDivideSceneBattleScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003A4B RID: 14923
		// (get) Token: 0x0600CE2B RID: 52779 RVA: 0x0022B690 File Offset: 0x00229890
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return StartAetherDivideSceneBattleScRsp.Descriptor;
			}
		}

		// Token: 0x0600CE2C RID: 52780 RVA: 0x0022B697 File Offset: 0x00229897
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StartAetherDivideSceneBattleScRsp()
		{
		}

		// Token: 0x0600CE2D RID: 52781 RVA: 0x0022B6A0 File Offset: 0x002298A0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StartAetherDivideSceneBattleScRsp(StartAetherDivideSceneBattleScRsp other) : this()
		{
			this.battleInfo_ = ((other.battleInfo_ != null) ? other.battleInfo_.Clone() : null);
			this.castEntityId_ = other.castEntityId_;
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600CE2E RID: 52782 RVA: 0x0022B6F8 File Offset: 0x002298F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StartAetherDivideSceneBattleScRsp Clone()
		{
			return new StartAetherDivideSceneBattleScRsp(this);
		}

		// Token: 0x17003A4C RID: 14924
		// (get) Token: 0x0600CE2F RID: 52783 RVA: 0x0022B700 File Offset: 0x00229900
		// (set) Token: 0x0600CE30 RID: 52784 RVA: 0x0022B708 File Offset: 0x00229908
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AetherDivideBattleInfo BattleInfo
		{
			get
			{
				return this.battleInfo_;
			}
			set
			{
				this.battleInfo_ = value;
			}
		}

		// Token: 0x17003A4D RID: 14925
		// (get) Token: 0x0600CE31 RID: 52785 RVA: 0x0022B711 File Offset: 0x00229911
		// (set) Token: 0x0600CE32 RID: 52786 RVA: 0x0022B719 File Offset: 0x00229919
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint CastEntityId
		{
			get
			{
				return this.castEntityId_;
			}
			set
			{
				this.castEntityId_ = value;
			}
		}

		// Token: 0x17003A4E RID: 14926
		// (get) Token: 0x0600CE33 RID: 52787 RVA: 0x0022B722 File Offset: 0x00229922
		// (set) Token: 0x0600CE34 RID: 52788 RVA: 0x0022B72A File Offset: 0x0022992A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x0600CE35 RID: 52789 RVA: 0x0022B733 File Offset: 0x00229933
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as StartAetherDivideSceneBattleScRsp);
		}

		// Token: 0x0600CE36 RID: 52790 RVA: 0x0022B744 File Offset: 0x00229944
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(StartAetherDivideSceneBattleScRsp other)
		{
			return other != null && (other == this || (object.Equals(this.BattleInfo, other.BattleInfo) && this.CastEntityId == other.CastEntityId && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600CE37 RID: 52791 RVA: 0x0022B7A4 File Offset: 0x002299A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.battleInfo_ != null)
			{
				num ^= this.BattleInfo.GetHashCode();
			}
			if (this.CastEntityId != 0U)
			{
				num ^= this.CastEntityId.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600CE38 RID: 52792 RVA: 0x0022B812 File Offset: 0x00229A12
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600CE39 RID: 52793 RVA: 0x0022B81A File Offset: 0x00229A1A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600CE3A RID: 52794 RVA: 0x0022B824 File Offset: 0x00229A24
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.CastEntityId != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.CastEntityId);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(88);
				output.WriteUInt32(this.Retcode);
			}
			if (this.battleInfo_ != null)
			{
				output.WriteRawTag(106);
				output.WriteMessage(this.BattleInfo);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600CE3B RID: 52795 RVA: 0x0022B89C File Offset: 0x00229A9C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.battleInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.BattleInfo);
			}
			if (this.CastEntityId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.CastEntityId);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600CE3C RID: 52796 RVA: 0x0022B90C File Offset: 0x00229B0C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(StartAetherDivideSceneBattleScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.battleInfo_ != null)
			{
				if (this.battleInfo_ == null)
				{
					this.BattleInfo = new AetherDivideBattleInfo();
				}
				this.BattleInfo.MergeFrom(other.BattleInfo);
			}
			if (other.CastEntityId != 0U)
			{
				this.CastEntityId = other.CastEntityId;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600CE3D RID: 52797 RVA: 0x0022B988 File Offset: 0x00229B88
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600CE3E RID: 52798 RVA: 0x0022B994 File Offset: 0x00229B94
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 40U)
				{
					if (num != 88U)
					{
						if (num != 106U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							if (this.battleInfo_ == null)
							{
								this.BattleInfo = new AetherDivideBattleInfo();
							}
							input.ReadMessage(this.BattleInfo);
						}
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					this.CastEntityId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040052B5 RID: 21173
		private static readonly MessageParser<StartAetherDivideSceneBattleScRsp> _parser = new MessageParser<StartAetherDivideSceneBattleScRsp>(() => new StartAetherDivideSceneBattleScRsp());

		// Token: 0x040052B6 RID: 21174
		private UnknownFieldSet _unknownFields;

		// Token: 0x040052B7 RID: 21175
		public const int BattleInfoFieldNumber = 13;

		// Token: 0x040052B8 RID: 21176
		private AetherDivideBattleInfo battleInfo_;

		// Token: 0x040052B9 RID: 21177
		public const int CastEntityIdFieldNumber = 5;

		// Token: 0x040052BA RID: 21178
		private uint castEntityId_;

		// Token: 0x040052BB RID: 21179
		public const int RetcodeFieldNumber = 11;

		// Token: 0x040052BC RID: 21180
		private uint retcode_;
	}
}
